<script>
	export default {
		onLaunch: function() {
			uni.setStorageSync('cun', '125M')
			let token = uni.getStorageSync('token')
			if (token) {
				uni.reLaunch({
					url: '/pages/getOrder/getOrder'
				})
			}
		},
		onShow: function() {
			// //console.log('App Show')
			let token = uni.getStorageSync('token')
			if (token) {
			this.$http.driver.recordsUserLoginInfo({type:0,userPort:'driver'}).then((res)=>{
			})
			}
		},
		onHide: function() {
			// //console.log('App Hide')
			uni.removeStorageSync('current')
			let token = uni.getStorageSync('token')
			if (token) {
			this.$http.driver.recordsUserLoginInfo({type:1,userPort:'driver'}).then((res)=>{
			})
			}
		}
	}
</script>
<style>
	page {
		background-color: #F7F9FB;
	}
</style>
<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "uview-ui/index.scss";
	// 引入阿里字体图标文件
	@import url("@/static/iconfont/iconfont.css");



	// 设置整个项目的背景色


	view,
	text {
		// font-family: 'Arial Normal', 'Arial', sans-serif;
		font-family: PingFang SC-Bold;
	}

	.orderMap {
		/deep/.u-icon__icon {
			span {
				margin-top: 5upx;
			}
		}
	}

	.orderMap13 {
		/deep/.u-icon__icon {
			span {
				margin-top: 6upx;
			}
		}
	}

	.padd-top {
		padding-top: 88upx;
		box-sizing: border-box;
	}

	.paddTopheder {
		padding-top: calc(var(--status-bar-height) + 44px);
		box-sizing: border-box;
	}
</style>